import axios from "@/utils/axios";

export function getNav() {
    return axios({
        url: '/sys/menu/nav',
        method: 'GET',
    })
}

export function getMenuList() {
    return axios({
        url: '/sys/menu/list',
        method: 'GET'
    })
}

export function save(data) {
    return axios({
        url: '/sys/menu/save',
        method: 'POST',
        data: data
    })
}

export function delItemById(id) {
    return axios({
        url: '/sys/menu/delete/' + id,
        method: 'POST',
    })
}

export function getItemById(id) {
    return axios({
        url: '/sys/menu/info/' + id,
        method: 'GET',
    })
}
